﻿using System;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI.Selection;

namespace YJKRevitBeam
{
	internal class BeamFilter : ISelectionFilter
	{
		public bool AllowElement(Element element)
		{
			bool flag = typeof(FamilyInstance) == element.GetType();
			bool flag2 = element.Category.Id.IntegerValue == -2001320;
			return flag && flag2;
		}

		public bool AllowReference(Reference refer, XYZ point)
		{
			return false;
		}
	}
}
